<?php

namespace App\Models;

use DateTimeInterface;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\HasMany;
use Illuminate\Database\Eloquent\SoftDeletes;

/**
 * 案卷构成模板
 * Class DossierTemplate
 */
class DossierTemplate extends Model
{
    use SoftDeletes;

    const TYPE = [
        1 => '封面',
        2 => '备考表',
        3 => '案卷目录',
        4 => '卷内目录',
        5 => '全引目录',
    ];

    protected function serializeDate(DateTimeInterface $date)
    {
        return $date->format('Y-m-d H:i:s');
    }

}
